
// 引入mongoose接口 （mongoose驱动）
const mongoose = require("mongoose");
mongoose.connect(
    // 数据库地址
    "mongodb://tangzhenhua:Lovo123456@182.92.214.223:8084/heshumiao_project3",
    {
        useNewUrlParser: true,
        useUnifiedTopology: true,
        auth: { authSource: "admin" }
    },
    () => {
        console.log(" connect ")
        require("./model/admins");
        require("./model/users");
        require("./model/address")
        require("./model/types");
        require("./model/labels");
        require("./model/comms")
        require("./model/secondKill");
        require("./model/indent")
        require("./model/shopping");
    }
);
